<!doctype html>
<%@ page contentType="text/html;charset=utf-8" pageEncoding="utf-8"
	language="java"%>
<%@ include file="/jsp/mobile/include/include.jsp"%>

<html lang="cn">
<head>
<script type="text/javascript" src="<%=request.getContextPath()%>/script/cordova-2.2.0.js"></script>
<%@ include file="/jsp/mobile/include/header.jsp"%>
<title>温馨提醒</title>
<script type="text/javascript">
$(document).bind('deviceready',function(){

	$('#btnCamera').bind('touchstart',function(){
		navigator.camera.getPicture(function(data){
			$('#thePicture').attr('src','data:image/jpeg;base64,'+data);
		},function(error){
			console.log('Error');
		},{
		destinationType:Camera.DestinationType.DATA_URL,
		sourceType:Camera.PictureSourceType.CAMERA,
		allowEdit:false,
		targetWidth:135,
		targetHeight:200
		});
	});	
	
	$('#btnPicture').bind('touchstart',function(){
		navigator.camera.getPicture(function(data){
			$('#thePicture').attr('src','data:image/jpeg;base64,'+data);
		},function(error){
			console.log('Error');
		},{
		destinationType:Camera.DestinationType.DATA_URL,
		sourceType:Camera.PictureSourceType.PHOTOLIBRARY,
		allowEdit:false,
		targetWidth:135,
		targetHeight:200,
		mediaType:Camera.MediaType.PICTURE
		});
	});

});
</script>
</head>
<body class="nobg">
<!-- <div class="head">
	<div class="auto">
    	<span class="tit">温馨提醒</span>
        <a href="javascript:goBackMain();" class="ico retu"></a>
    </div>
</div> -->
<div class="main">
	<div class="payOk">
    	<div class="tsIg">
        	<p><i class="ico ico14"></i></p>
            <p class="mt10">温馨提醒</p>
        </div>
        <div class="mp9">
        	该功能近期推出，敬请期待！
        </div>
    	<div class="nbtn mt40">
            <a class="butn" href="javascript:goBackMain();">确认</a>
        </div>
		<input type="button" id="btnCamera" value="picture from camera" /><br/>
<input type="button" id="btnPicture" value="picture from library" /><br/>
<img id="thePicture" src="" />
    </div>
</div>
<script type="text/javascript">
        
    </script>
</body>
</html>